package cn.touna.jss.modules.third.zixin.entity;


import cn.touna.risk.api.contraints.FullName;
import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.InSet;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by 吴柏平 on 2017/8/1.
 */
public class ZiXinEntity extends BaseDomain {

    @NotBlank
    //申请人姓名
    private String name;

    @IdCard
    //身份证号
    private String idCard;

    @NotBlank(message = "certtype不能为空")
    @InSet(enumSet = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "X"}, message = "certtype格式不正确")
    //证件类型
    private String certtype;

    //查询原因
    @NotBlank(message = "查询原因不能为空")
    @InSet(enumSet = {"01", "02", "03", "04", "05", "06", "07", "08"})
    private String reason;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCerttype() {
        return certtype;
    }

    public void setCerttype(String certtype) {
        this.certtype = certtype;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
